package demo;


import demo.standard.*;

public class ClientForStandard {

    public static void main(String[] args) {
        IFactory factory = new ConcreteFactoryA();
        IProduct1 product1 = factory.produce1();
        product1.use();
        IProduct2 product2 = factory.produce2();
        product2.use();

        factory = new ConcreteFactoryB();
        product1 = factory.produce1();
        product1.use();
        product2 = factory.produce2();
        product2.use();
    }
}
